package com.czy.feign.cilent;

import com.czy.feign.pojo.User;
import org.springframework.stereotype.Component;

/**
 * @author czy
 * @create 2018-04-15 23:10
 **/
@Component
public class MovieClientFallback implements MovieClient
{
	@Override
	public User findUserById(Integer id)
	{
		User u = new User();
		u.setId(-1);
		u.setName("error");
		return u;
	}
}
